// StartSafeDownloadPpg.cpp : Implementation of the CStartSafeDownloadPropPage property page class.

#include "stdafx.h"
#include "StartSafeDownload.h"
#include "StartSafeDownloadPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CStartSafeDownloadPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CStartSafeDownloadPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CStartSafeDownloadPropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CStartSafeDownloadPropPage, "STARTSAFEDOWNLOAD.StartSafeDownloadPropPage.1",
	0x92f03487, 0x8683, 0x451c, 0x84, 0x90, 0x44, 0xd6, 0xb4, 0xc7, 0xba, 0xfe)


/////////////////////////////////////////////////////////////////////////////
// CStartSafeDownloadPropPage::CStartSafeDownloadPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CStartSafeDownloadPropPage

BOOL CStartSafeDownloadPropPage::CStartSafeDownloadPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_STARTSAFEDOWNLOAD_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CStartSafeDownloadPropPage::CStartSafeDownloadPropPage - Constructor

CStartSafeDownloadPropPage::CStartSafeDownloadPropPage() :
	COlePropertyPage(IDD, IDS_STARTSAFEDOWNLOAD_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CStartSafeDownloadPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CStartSafeDownloadPropPage::DoDataExchange - Moves data between page and properties

void CStartSafeDownloadPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CStartSafeDownloadPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CStartSafeDownloadPropPage message handlers
